package o;

import android.content.Context;
import android.text.TextUtils;
import com.weibo.ssosdk.WeiboSsoSdk;
import com.weibo.ssosdk.WeiboSsoSdk.b;

public final class fnj {
    private String ˊ;

    static class a {
        private static final fnj ˏ = new fnj();
    }

    private fnj() {
    }

    public static synchronized fnj ॱ() {
        fnj ˏ;
        synchronized (fnj.class) {
            ˏ = a.ˏ;
        }
        return ˏ;
    }

    public void ˎ(Context context, String str) {
        fnm.ˊ("WeiboSsoManager", "init config");
        foi o_foi = new foi();
        o_foi.ˏ(context);
        o_foi.ॱ(str);
        o_foi.ˋ("1478195010");
        o_foi.ˎ("1000_0001");
        WeiboSsoSdk.ˎ(o_foi);
        ˎ();
    }

    private void ˎ() {
        try {
            WeiboSsoSdk.ॱ().ˏ(new fof(this) {
                final /* synthetic */ fnj ॱ;

                {
                    this.ॱ = r1;
                }

                public void ˏ(b bVar) {
                    if (bVar != null) {
                        this.ॱ.ˊ = bVar.ˋ();
                    } else {
                        fnm.ˊ("WeiboSsoManager", "VisitorLoginInfo is null.");
                    }
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
            fnm.ˎ("WeiboSsoManager", e.getMessage());
        }
    }

    public String ˏ(Context context, String str) {
        fnm.ˊ("WeiboSsoManager", "getAid()");
        if (TextUtils.isEmpty(this.ˊ)) {
            ˎ(context, str);
        }
        return this.ˊ;
    }
}
